package org.example.provider.dao;

import org.example.provider.domain.Goods;
import org.springframework.stereotype.Repository;

/**
 * @Date: 2024/9/26
 * @Author: Administrator
 * @ClassName: GoodsDao
 * @Description: comment here
 */

@Repository
public class GoodsDao {
    public Goods findById(int id){
        // 模拟从数据库中查询
        Goods goods = new Goods();
        goods.setGoodsId(id);
        goods.setName("商品" + id);
        goods.setPrice(5999.0);
        goods.setStock(110);
        return goods;
    }
}
